From: Ewan Mellor Date: Wed, 25 Oct 2006 14:01:51 +0000 (+0100) Subject: Print the time to xend-debug.log, when starting or restarting Xend. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15567^2~157^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=59b7cdb9fa785745d2055e3d3e49496b5f4a9703;p=xen.git Print the time to xend-debug.log, when starting or restarting Xend. Signed-off-by: Ewan Mellor --- diff --git a/tools/python/xen/xend/server/SrvDaemon.py b/tools/python/xen/xend/server/SrvDaemon.py index 03386d3127..864c371552 100644 --- a/tools/python/xen/xend/server/SrvDaemon.py +++ b/tools/python/xen/xend/server/SrvDaemon.py @@ -9,6 +9,7 @@ import os import signal import sys import threading +import time import linecache import pwd import re @@ -112,6 +113,8 @@ class Daemon: os.open('/dev/null', os.O_RDWR) os.dup(0) os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND) + print >>sys.stderr, ("Xend started at %s." % + time.asctime(time.localtime())) def start(self, trace=0):